from pathlib import Path

# 基础配置
BASE_DIR = Path(__file__).resolve().parent.parent.parent
CACHE_DIR = BASE_DIR / "cache"
OUTPUT_DIR = BASE_DIR / "output"

# API配置
API_CONFIG = {
    "base_url": "http://180.184.65.98:38880/atomgit",
    "timeout": 10,
    "max_retries": 3,
    "retry_delay": 1
}

# 模型配置
MODEL_CONFIG = {
    "name": "glm-4-plus",
    "api_key": "YOUR API KEY",
    "temperature": 0.7,
    "max_tokens": 3500
}

# 综述生成配置
REVIEW_CONFIG = {
    "min_papers": 30,
    "max_papers": 50,
    "min_citations": 5,
    "min_content_length": 2000,
    "max_retries": 3
}

# 引用格式配置
CITATION_CONFIG = {
    "min_citations_per_paragraph": 2,
    "citation_pattern": r'<sup>(\d+)</sup>',
    "reference_pattern": r'\[(\d+)\]\s(.+?),\s(.+?),\s(\d{4})'
}
